package com.star.mall.persistence.service;

import com.star.mall.persistence.entity.FileRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 文件表  服务类
 * </p>
 *
 * @author StarQ
 * @since 2021-05-09
 */
public interface IFileRecordService extends IService<FileRecord> {

    FileRecord uploadFile(MultipartFile file);

    void downloadFile(String id, HttpServletResponse response);

    void deleteFile(String ...ids);
}
